//
//  WWRequestAPI+WWAccountAPI.h
//  WangLottery
//
//  Created by 黄修勇 on 12-9-10.
//
//

#import "WWRequestAPI.h"
#import "WWDataParser.h"

#define kLOGIN_ACTION                   @"login"
#define kFORGOT_PSW_ACTION              @"findpw"
#define KREGISTER_ACTION                @"regist"

@interface WWRequestAPI (WWAccountAPI)


-(long)loginWithusername:(NSString *)username psw:(NSString *)psw target:(id)target;

-(long)forgotPswByTel:(NSString *)tel target:(id)target;

-(long)registWithName:(NSString *)name phone:(NSString *)phone psw:(NSString *)psw target:(id)target;

-(long)modifyDetailInfoWithOldPhone:(NSString *)oldPhone oldPsw:(NSString *)oldPsw email:(NSString *)email username:(NSString *)username cardID:(NSString *)cartID newPhone:(NSString *)newPhone newPsw:(NSString *)newPsw target:(id)target;

-(long)modifyNewPswWithTel:(NSString *)tel code:(NSString *)code newPassWord:(NSString *)psw target:(id)target;

@end


@interface WWDataParser (WWAccountParser)

-(NSDictionary *)loginDicForString:(NSString *)string;

@end